import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/3/27 19:32
 */

public class Solution {
    public boolean isUnique(String astr){
        if(astr.length() > 26) return false;

        int BitMap = 0;
        for (int i = 0; i < astr.length(); i++) {
            int x = astr.charAt(i) - 'a';
            //先判断字符是否在位图中
            if(((BitMap >> x) & 1) == 1) return false;
            //把当前字符丢进位图中
            BitMap |= 1 << x;
        }
        return true;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()){
            String s = in.nextLine();
            Solution solution = new Solution();
            System.out.println(solution.isUnique(s));
        }
    }
}